// =====================================================
// UIPanel class
// =====================================================
// Inheritance
UIPanel.InheritsFrom(UIControl);

function UIPanel()
{
	// ----------------- Methods -------------------
	this.Construct = Construct;

	// ---------- Method definition ----------------
	function Construct(id, pos, params)
	{
		// set HTML tag used for this control
		this.SetTag("uipanel");

		// call parent constructor
		parent = Object.getPrototypeOf(this);
		parent.Construct(id, pos, params);

		// redefine/add more properties
        this.SetProperty("Size",    new Size("400px", "200px"));

		// init events
		dropHandler = new IDropable();
		this.AddHandler("dragenter", dropHandler.dragEnter);
		this.AddHandler("dragover", dropHandler.dragOver);
		this.AddHandler("dragleave", dropHandler.dragLeave);
		this.AddHandler("drop", dropHandler.drop);
	}
}